package com.blb.service.serviceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.blb.dao.ZGiftMapper;
import com.blb.dto.ZGiftExample;
import java.util.List;
import com.blb.dto.ZGift;
import com.blb.service.ZGiftService;

@Service
public class ZGiftServiceImpl implements ZGiftService {

    @Resource
    private ZGiftMapper zGiftMapper;

    @Override
    public long countByExample(ZGiftExample example) {
        return zGiftMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(ZGiftExample example) {
        return zGiftMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer gid) {
        return zGiftMapper.deleteByPrimaryKey(gid);
    }

    @Override
    public int insert(ZGift record) {
        return zGiftMapper.insert(record);
    }

    @Override
    public int insertSelective(ZGift record) {
        return zGiftMapper.insertSelective(record);
    }

    @Override
    public List<ZGift> selectByExample(ZGiftExample example) {
        return zGiftMapper.selectByExample(example);
    }

    @Override
    public ZGift selectByPrimaryKey(Integer gid) {
        return zGiftMapper.selectByPrimaryKey(gid);
    }

    @Override
    public int updateByExampleSelective(ZGift record, ZGiftExample example) {
        return zGiftMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(ZGift record, ZGiftExample example) {
        return zGiftMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(ZGift record) {
        return zGiftMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ZGift record) {
        return zGiftMapper.updateByPrimaryKey(record);
    }

}


